package com.example.controller;

import com.example.rabbitmq.fanout.service.FanoutSendService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:
 * @Description:
 * @Date: 2019/12/27 12:59
 */
@RestController
@RequestMapping("/FanoutSend")
@Api(value = "FanoutSendController", description = "FanoutSendController")
public class FanoutSendController {

    @Autowired
    private FanoutSendService fanoutSendService;

    @PostMapping("/fanoutSend")
    @ApiOperation(value = "发送fanoutSend消息", notes = "发送fanoutSend消息")
    public String fanoutSend(String message) {
        String sendMsg = fanoutSendService.fanoutSend(message);
        return sendMsg;
    }

}
